﻿using System.Collections.Generic;
using Model;

namespace IDAL
{
    /// <summary>
    /// 收藏接口定义
    /// </summary>
    public interface IFavouriteDAL
    {
        //添加收藏
        void saveFavorite(Favourite favorite);
        //删除收藏
        void delFavorite(Favourite favorite);
        //得到收藏
        Favourite getFavourite(int favouriteId);
        //收藏列表
        IList<Favourite> getFavourite(User user);
        //收藏列表
        IList<Favourite> getFavourite(Resource resource);

        Favourite getFavourite(User user, Resource resource);
    }
}
